<template>
    <div class="cart-container">
        <div class="top-title">
            <p class="tc">购物车</p>
        </div>
        <div class="content">
            <p class="remind">如需开票请联系客服</p>

            <div class="goods">
                <ul class="goods-list">
                    <li class="goods-item">
                        <span class="select"></span>
                        <div class="goods-img">
                            <img src="http://data.100126.com/uploads/members/201901/03103725uOaVb.jpg">
                        </div>
                        <div class="goods-box">
                            <div class="goods-box-top fx-spb">
                                <p class="title ell">面包蟹&nbsp;礼盒3斤装</p>
                                <p class="price">￥299.00</p>
                            </div>
                            <div class="goods-box-bottom fx-spb">
                                <div class="add-reduce fx-spb">
                                    <span class="reduce"></span>
                                    <span class="number">1</span>
                                    <span class="add"></span>
                                </div>
                                <p class="remove">
                                    <img src="../../images/cart/remove.png" alt="">
                                </p>
                            </div>
                        </div>
                    </li>
                    <li class="goods-item">
                        <span class="select"></span>
                        <div class="goods-img">
                            <img src="http://data.100126.com/uploads/members/201901/03103725uOaVb.jpg">
                        </div>
                        <div class="goods-box">
                            <div class="goods-box-top fx-spb">
                                <p class="title ell">面包蟹&nbsp;礼盒3斤装</p>
                                <p class="price">￥299.00</p>
                            </div>
                            <div class="goods-box-bottom fx-spb">
                                <div class="add-reduce fx-spb">
                                    <span class="reduce"></span>
                                    <span class="number">1</span>
                                    <span class="add"></span>
                                </div>
                                <p class="remove">
                                    <img src="../../images/cart/remove.png" alt="">
                                </p>
                            </div>
                        </div>
                    </li>
                    <li class="goods-item">
                        <span class="select"></span>
                        <div class="goods-img">
                            <img src="http://data.100126.com/uploads/members/201901/03103725uOaVb.jpg">
                        </div>
                        <div class="goods-box">
                            <div class="goods-box-top fx-spb">
                                <p class="title ell">面包蟹&nbsp;礼盒3斤装</p>
                                <p class="price">￥299.00</p>
                            </div>
                            <div class="goods-box-bottom fx-spb">
                                <div class="add-reduce fx-spb">
                                    <span class="reduce"></span>
                                    <span class="number">1</span>
                                    <span class="add"></span>
                                </div>
                                <p class="remove">
                                    <img src="../../images/cart/remove.png" alt="">
                                </p>
                            </div>
                        </div>
                    </li>
                    <li class="goods-item">
                        <span class="select"></span>
                        <div class="goods-img">
                            <img src="http://data.100126.com/uploads/members/201901/03103725uOaVb.jpg">
                        </div>
                        <div class="goods-box">
                            <div class="goods-box-top fx-spb">
                                <p class="title ell">面包蟹&nbsp;礼盒3斤装</p>
                                <p class="price">￥299.00</p>
                            </div>
                            <div class="goods-box-bottom fx-spb">
                                <div class="add-reduce fx-spb">
                                    <span class="reduce"></span>
                                    <span class="number">1</span>
                                    <span class="add"></span>
                                </div>
                                <p class="remove">
                                    <img src="../../images/cart/remove.png" alt="">
                                </p>
                            </div>
                        </div>
                    </li>
                    <li class="goods-item">
                        <span class="select"></span>
                        <div class="goods-img">
                            <img src="http://data.100126.com/uploads/members/201901/03103725uOaVb.jpg">
                        </div>
                        <div class="goods-box">
                            <div class="goods-box-top fx-spb">
                                <p class="title ell">面包蟹&nbsp;礼盒3斤装</p>
                                <p class="price">￥299.00</p>
                            </div>
                            <div class="goods-box-bottom fx-spb">
                                <div class="add-reduce fx-spb">
                                    <span class="reduce"></span>
                                    <span class="number">1</span>
                                    <span class="add"></span>
                                </div>
                                <p class="remove">
                                    <img src="../../images/cart/remove.png" alt="">
                                </p>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>

        <div class="choose-all fx-spb">
            <div class="choose-left fx-spb">
                <span class="select"></span>
                <span>全选（<span>0</span>）</span>
            </div>
            <!-- <span>|</span> -->
            <span>￥<span>10000.00</span></span>
            <span>下单</span>
        </div>

        <nav class="nav-bar">
            <router-link class="nav-tab-item" to="/index">
                <img src="../../images/index/icon-index.png" class="icon-index">
                <span class="nav-tab-label">首页</span>
            </router-link>
            <router-link class="nav-tab-item" to="/classify">
                <img src="../../images/index/icon-classify.png" class="icon-classify">
                <span class="nav-tab-label">分类</span>
            </router-link>
            <router-link class="nav-tab-item" to="/cart">
                <img src="../../images/index/icon-cart-active.png" class="icon-cart">
                <span class="nav-tab-label" style="color:#39BFB3;">购物车</span>
            </router-link>
            <router-link class="nav-tab-item" to="/user">
                <img src="../../images/index/icon-my.png" class="icon-my">
                <span class="nav-tab-label">我的</span>
            </router-link>
        </nav>
    </div>
</template>

<script>
export default {
    data() { 
        return {

        }
    }
}
</script>

<style lang="scss" scoped>
.cart-container{
    .content{
        padding: 1rem 0 3rem 0;
        .remind{
            background-color: #fafafa;
            height: 0.6rem;
            line-height: 0.6rem;
            font-size: 0.24rem;
            color: #FFC84C;
            padding-left: 0.6rem;
            position: relative;
        }
        .remind::after{
            content: '';
            display: block;
            width: 0.12rem;
            height: 0.12rem;
            border: 1px solid #FFC84C;
            border-radius: 50%;
            position: absolute;
            left: 0.3rem;
            top: 50%;
            transform: translateY(-50%);
        }
        .goods-list{
            .goods-item{
                width: 100%;
                height: 2.4rem;
                border-bottom: 1px solid #dfdfdf;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0 0.3rem;
                .select{
                    display: block;
                    width: 0.42rem;
                    height: 0.42rem;
                    border: 1px solid #dfdfdf;
                    border-radius: 50%;
                }
                .goods-img{
                    img{
                        width: 1.82rem;
                        height: 1.86rem;
                    }
                }
                .goods-box{
                    width: 60%;
                    height: 100%;
                    padding: 0.4rem 0;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    .title,.price{
                        font-size: 0.3rem;
                    }
                    .add-reduce{
                        width: 50%;
                        height: 0.5rem;
                        align-items: center;
                        .reduce{
                            display: inline-block;
                            width: 0.28rem;
                            height: 0.28rem;
                            background: url('../../images/cart/reduce.png') no-repeat;
                            background-size: 100% 100%;
                           
                        }
                        .number{
                            font-size: 0.32rem;
                        }
                        .add{
                            display: inline-block;
                            width: 0.28rem;
                            height: 0.28rem;
                            background: url('../../images/cart/add.png') no-repeat;
                            background-size: 100% 100%;
                        }
                    }
                    .remove{
                        padding-right: 0.2rem;
                        img{
                            width: 0.5rem;
                            height: 0.5rem;
                        }
                    }
                }
            }
        }
    }
    .choose-all{
        height: 0.94rem;
        line-height: 0.94rem;
        width: 100%;
        background-color: #39BFB3;
        position: fixed;
        bottom: 1rem;
        z-index: 10;
        color: #fff;
        padding: 0 0.3rem;
        .choose-left{
            align-items: center;
            .select{
                display: inline-block;
                width: 0.42rem;
                height: 0.42rem;
                border: 1px solid #dfdfdf;
                border-radius: 50%;
                margin-right: 0.3rem;
            }
        }
        img{
            width: 0.26rem;
            height: 0.22rem;
        }
    }
}
</style>